package com.xgxx.chendawei.system.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.ToString;

import java.io.Serial;
import java.io.Serializable;

/**
 * 教师信息 实体类
 */
@Data
@ToString(callSuper = true)
@TableName("b_teacher")
@ApiModel(value = "Teacher", description = "教师信息")
public class Teacher implements Serializable {
    @Serial
    private static final long serialVersionUID = -1L;

    @TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "主键", name = "id")
    private Long id;

    //教师工号,数据库必填字段
    @TableField(value = "teacher_code")
    @ApiModelProperty(value = "教师工号", name = "teacherCode")
    private String teacherCode;
    //姓名,数据库必填字段
    @TableField(value = "teacher_name")
    @ApiModelProperty(value = "姓名", name = "teacherName")
    private String teacherName;
}
